<?php
class Bgtask_Launcher_Local_Json extends Bgtask_Launcher_Local{

	public function launch($task , array $config){
		
		echo json_encode(array('success'=>true));	
		echo ob_get_clean();
		flush();	
		ob_start();
		$task = new $task($config);	
		exit();	
	}
}